<!-- HTML5 sekce pro články -->
      <section id="content">
        <div class="block aside">
          <div class="block-left">
            <article class="article">
              <header>
                <h2 class=""><?php echo $blog->title ?></h2>
              </header>
              <section>
                <?php echo $blog->text ?>
              </section>              
            </article>                                      
            <div class="clear-both"></div>            
          </div>          
          <aside class="block-right">
            <h3><?php echo StrFTime("%d. %B %Y", $blog->date); ?></h3>
            <h3 class="min" style="text-align:left">Tagy</h3>
            <div class="aside-item-line">
            <?php
            foreach ($blog->blogs_tag->find_all() as $cat_item) {
              echo $cat_item->tag . '<br />';
            }
            ?>
            </div>
          </aside>  
          <div class="block-bottom aside-bottom"></div>                     
        </div>
        <?php if (count($comments_blog) !== 0 || Auth::instance()->logged_in()): ?>
        <div class="block">
          <header>
            <h2>Komentáře</h2>
          </header>
          <!-- HTML5 sekce pro komentáře -->
          <section class="block-body">
            <?php if (Auth::instance()->logged_in()): ?>
            <form action="<?php echo url::base(); ?>comments/blog_add" method="post">
              <ul>
                <li>
                  <textarea cols="10" rows="10" name="btext" class="text-big"></textarea>
                </li>
                <li class="submit"><?php echo Form::submit(NULL, 'Přidat komentář'); ?></li>
              </ul>
              <?php echo Form::hidden('bid', $blog->id); ?>
            </form>
            <?php endif ?>
            <?php foreach ($comments_blog as $item): ?>
            <div class="comment"><?php echo nl2br($item->text); ?></div>
            <div class="comment-bottom"><?php echo $item->username .' ('.Helpers_Photovoice::datum($item->date). ')'; ?></div>
            <?php endforeach ?>
            <br />
            <div class="clear-both"></div>
          </section>
        </div>
        <div class="block-bottom"></div>
        <?php endif ?>
      </section>